home *** CD-ROM | disk | FTP | other *** search
/ The Arsenal Files 6 / The Arsenal Files 6 (Arsenal Computer).ISO / prg_casm / jlvesa11.zip / JLVESA07.ASM < prev    next >
Assembly Source File  |  1995-11-14  |  535b  |  37 lines

  1. ; This routine is part of VESA SVGA -library
  2. ;
  3. ; Copyright 1994 Johannes Lehtinen
  4. ; All rights reserved
  5.  
  6. model large,c
  7. p386
  8.  
  9. include "jlvesads.asm"
  10.  
  11. segment jlvesa07_TEXT USE16 'CODE'
  12. assume cs:jlvesa07_TEXT
  13.  
  14. ; JVUDword JVSVGA_GetMemory(void)
  15. ;
  16. ; Returns the size of video memory
  17.  
  18. proc JVSVGA_GetMemory far
  19.    public JVSVGA_GetMemory
  20.  
  21.    push  ds
  22.  
  23.    mov   ax,JLVesa_Data
  24.    mov   ds,ax
  25.    mov   eax,[ds:Size]
  26.    mov   edx,eax
  27.    shr   edx,16
  28.  
  29.    pop   ds
  30.    retf
  31.  
  32. endp JVSVGA_GetMemory
  33.  
  34. ends
  35.  
  36. end
  37.